<div class="judul_content">Ubah Data Relasi</div>
            
<?php
	$id=$_GET['id'];
	$sttmt = $koneksi->query("select * from patner where id_patner = $id");
	$hasil = $sttmt->fetch(PDO::FETCH_ASSOC);
?>
<form class="form" name="form_tambah" method="post" action="utama.php?module=mod_partner&act=update" enctype="multipart/form-data">
     <ul>
        <li>
            <label>Nama Perusahaan</label>
            <input type="text" name="name" id="name" class="form" maxlength="40" size="50" value="<?php echo $hasil[nama_perusahaan]; ?>">
			<input type="hidden" name="id" id="id" value="<?php echo $hasil[id_patner]; ?>">
        </li>
		<li>
            <label>Link</label>
            <input type="text" name="link" id="link" class="form" maxlength="40" size="50" value="<?php echo $hasil[link]; ?>">
        </li>
		<li>
            <label>Status</label>
			<?php
				if($hasil['aktif'] == 'Y'){
					echo "<input type=radio name=status value=Y checked>Aktif &nbsp; 
					<input type=radio name=status value=N >Tidak Aktif";
				}else{
					echo "<input type=radio name=status value=Y>Aktif &nbsp; 
					<input type=radio name=status value=N checked>Tidak Aktif";
				}
			?>
        </li>
		<li>
            <label>Gambar</label>
            <input type="file" name="logo" id="logo"> <font class="red">**</font>
        </li>
		<li>
            <label>&nbsp;</label>
            <img src="../patner/<?php echo $hasil[logo]; ?>" height="50">
        </li>
		<li>
            <label>&nbsp;</label>
            <i><font class="red">**</font>) Kosongkan gambar apabila tidak ingin diganti.</i>
        </li>
		<li>
			<label>&nbsp;</label>
            <input type="reset" name="reset" value="Reset" class="reset">
			<input type="submit" name="submit" value="Ubah" class="tambah">
		</li>
	</ul>
</form>       